package com.xunqi.product.dao;

import com.xunqi.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xunqi.product.vo.AttrRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author hjy
 * @email hjy@gmail.com
 * @date 2020-06-16 11:57:38
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    List<AttrRespVo> attrGroupCategoryList(@Param("typeCode")int typeCode, @Param("key") String key, @Param("catelogId") Long catelogId,
                                           @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);

    AttrRespVo attrGroupCategoryById(@Param("attrId")Long attrId);
}
